package com.flexcodejam.vfd.event
{

	import com.adobe.cairngorm.control.CairngormEvent;
	import com.flexcodejam.vfd.vo.*;

	import flash.events.Event;


	//To change the viewStack
	//var ev:ChangeMainViewStackEvent = new ChangeMainViewStackEvent(ChangeMainViewStackEvent.xxx,true,false);
	//xxx point to StaticVariable
	//CairngormEventDispatcher.getInstance().dispatchEvent(ev);


	public class ChangeMainViewStackEvent extends CairngormEvent {
	

		public static var GO_TO_DONATION_BOARD:String = "DonationBoard";
		public static var GO_TO_FOOD_DRIVE_VIEW:String = "FoodDriveView";
		public static var GO_TO_MAKE_DONATION:String = "MakeDonation";
		public static var GO_TO_CONFIRMATION:String = "Confirmation";
		public static var GO_TO_FOOD_DRIVE_MANAGER:String = "FoodDriveManager";
		public static var GO_TO_NEW_EDIT_FOOD_DRIVE:String = "NewEditFoodDrive";
		public static var GO_TO_EDIT_FOOD_DRIVE:String = "EditFoodDrive";
		public static var GO_TO_SUPER_USER:String = "SuperUser";
		public static var GO_TO_THANK_YOU:String = "ThankYou";

		/**
		 * Constructor.
		 */
		public function ChangeMainViewStackEvent(type:String,bubbles:Boolean=true,cancelable:Boolean=false)
		{
			super(type,bubbles,cancelable);
			trace("New View Stack Event");
		}

     	/**
     	 * Override the inherited clone() method, but don't return any state.
     	 */
		override public function clone() : Event
		{
			var e:ChangeMainViewStackEvent = new ChangeMainViewStackEvent(type,bubbles,cancelable);
			// e.donation = this.donation;
			// e.user = this.user;
			// e.foodDrive = this.foodDrive;
			return e;
		}
	}
}